package c2.advanced.business.demo.handler;

import c2.advanced.business.base.AdvancedSubModule;
import cate.game.play.part.PlaySide;
import easy.java.practice.errorcode.EcResult;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DemoPlayHandler extends AdvancedSubModule {

    public Object createPlaySideByDynCfg() {
        String code = "快照=1&阵容=1:1051301:12:0#2:1051301:12:0#3:1051301:12:0#4:1051301:12:0#5:1051301:12:0#6:1051301:12:0";
        EcResult<PlaySide> r_ps = usePlay().sideBuilder.createPlaySideByCode(code);
        return r_ps;
    }

    @Override
    public void onShutdown() throws Exception {
        log.info("演示子模块:play:onShutdown()");
    }
}